home *** CD-ROM | disk | FTP | other *** search
- if data-entry ROOMS_REQUIRED > any CLUB ROOMS with
- (DEPARTURE DATE = data-entry DEPARTURE_DATE and CLUB ID =
- data-entry CLUB_ID) VACANCIES then
-
- message "Not enough rooms are available. | Please choose another Club or date." window .
-
- else
- while current status not = 1 do
- input using MEMBERS into "TEMPMEM" .
- case ( current status )
- value 1 :
- exit .
- value 2 :
- modify records in CLUB ROOMS with
- (CLUB ID = data-entry CLUB_ID and
- DEPARTURE DATE = data-entry DEPARTURE_DATE)
- VACANCIES := VACANCIES - data-entry ROOMS_REQUIRED .
-
- enter a record in MEMBERS
- copy all from TEMPMEM.
-
- enter a record in RESERVATIONS
- copy all from TEMPMEM ;
- CLUB ID := data-entry CLUB_ID ;
- DEPARTURE DATE := data-entry DEPARTURE_DATE ;
- ROOMS REQUIRED := data-entry ROOMS_REQUIRED .
-
- record entry RESERVATIONS.
- others
- message "You are not authorized to |
- modify or delete records." window.
- end
- end
- end
-